package com.example.demo.pojo.properties;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Getter
@Setter
@ToString
@Component
@ConfigurationProperties(prefix = "aliyun.sms")
public class AliyunSmsProperties {
    private String accessKeyId;
    private String accessKeySecret;
    private String endpoint;
    private String signName;
    private String templateCodeDigit;
    private String templateCodeLetter;

    public AliyunSmsProperties() {
    }

    public AliyunSmsProperties(String accessKeyId, String accessKeySecret, String endpoint, String signName, String templateCodeDigit, String templateCodeLetter) {
        this.accessKeyId = accessKeyId;
        this.accessKeySecret = accessKeySecret;
        this.endpoint = endpoint;
        this.signName = signName;
        this.templateCodeDigit = templateCodeDigit;
        this.templateCodeLetter = templateCodeLetter;
    }
}
